Skip to content

Fix stack overflow in case of loops in the graph#88

Open
stefanhahmann wants to merge 1 commit into
masterfrom
fix-label-spots-systematically-loops
Open

Fix stack overflow in case of loops in the graph#88
stefanhahmann wants to merge 1 commit into
masterfrom
fix-label-spots-systematically-loops

Conversation

@stefanhahmann
Copy link
Copy Markdown
Collaborator

@stefanhahmann stefanhahmann commented May 19, 2025

In case of loops in the graph, more precisely, in the situation, when the last spot of a branch has an outgoing edge to itself, label spots systematically got to a stack overflow situation due to a recursion that does not finish. This PR adds conditions to leave the recursion and extends the unit test to proof, the fix is working.

Fixes #86 with the more robust implementation of the algorithm, but not with the more laborious plugin to the tests for problems in the graph and offers to fix them automatically

In case of loops in the graph, more precisely, in the situation, when the last spot of a branch has an outgoing edge to itself, label spots systematically got to a stack overflow situation due to a recursion that does not finish. This commit adds conditions to leave the recursion and extends the unit test to proof, the fix is working
@stefanhahmann stefanhahmann self-assigned this May 19, 2025
@stefanhahmann stefanhahmann requested a review from maarzt May 19, 2025 13:01
@stefanhahmann
Copy link
Copy Markdown
Collaborator Author

@maarzt just a reminder to have a look on this so that it can maybe be merged soon-ish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stack Overflow When Running "Systematically label sports" on problematic datasets

1 participant